package com.hopu.service.Impl;

import com.hopu.mapper.IDeptMapper;
import com.hopu.pojo.Dept;
import com.hopu.service.IDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeptServiceImpl implements IDeptService {

    @SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
    @Autowired
    private IDeptMapper deptMapper;

    @Override
    public List<Dept> findAll() throws Exception {
        return deptMapper.findAll();
    }

    @Override
    public Dept findById(Integer did) throws Exception {
        return null;
    }
}
